package cn.zktr.Personnel.model.service.ouyangpeng;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;

import cn.zktr.Personnel.model.mappers.ouyangpng.PerRetNAltsMapper;
import cn.zktr.Personnel.model.pojos.PerIntention;
import cn.zktr.Personnel.model.pojos.PerRetWAlt;

/**
 * @author lenovo
 *职员变更，对内招聘
 */
@Service
@Transactional(rollbackOn=Exception.class)
public class RetNAltService {
	@Autowired
	private PerRetNAltsMapper retnaltsmapper;
	//@Autowired
	//private RetNAltDao naltsdao;
	//查询所有对内招聘申请单
//	public List<PerIntention> selectdnshenqing(){
//		return retnaltsmapper.selectdnshenqing();
//	}
//	//根据部门模糊查询
//	public List<PerRetNAlts> selectdnshenqingjias(String DEPTNAME){
//		return retnaltsmapper.selectdnshenqingjias(DEPTNAME);
//	}
//	
//	//查询所有对内招聘申请单
//    public List<PerRetNAlts> selectytdnshenqing(){
//    	return retnaltsmapper.selectytdnshenqing();
//    }
//    //根据部门对已通过的模糊查询
//    public List<PerRetNAlts> selectytdnshenqingjias(String DEPTNAME){
//    	return retnaltsmapper.selectytdnshenqingjias(DEPTNAME);
//    }
    //修改状态为0（申请失败）
//    public void dnshibai(Integer naltid) {
//    	PerRetNAlts nalts=naltsdao.findById(naltid).get();
//    	nalts.setPerEmaFebs(0);
//    	naltsdao.save(nalts);
//    }
}
